function open_invmain(){
	u_hideAllSections();
	u_safeShowElement('invmain_div');
	//init_pomaintab();
	assignInvToMain();
	if(!isNavigationFromBackButton){
	var functionPointerObj = new Object();
	functionPointerObj.functionName = "open_invmain()";
	navigationStateArray.push(functionPointerObj);
	}
	
}


function assignInvToDashBoard(){
	if(invr_yui_table_instance != null && invs_yui_table_instance != null ){
	invr_yui_table_instance.hideColumn("selectThis"); 
	invs_yui_table_instance.hideColumn("selectThis");
	YAHOO.util.Dom.insertAfter ( "invrecieved_div" , "inv_rec_yui_placeholder1") ;
	YAHOO.util.Dom.insertAfter ( "invsent_div" , "inv_sent_yui_placeholder1") ;
	}
}





/*function assignInvToDashBoard(){
	if(invr_yui_table_instance != null && invs_yui_table_instance != null ){
	invr_yui_table_instance.hideColumn("selectThis"); 
	invs_yui_table_instance.hideColumn("selectThis");
	YAHOO.util.Dom.insertAfter ( "invrecieved_div" , "inv_rec_yui_placeholder1") ;
	YAHOO.util.Dom.insertAfter ( "invsent_div" , "inv_sent_yui_placeholder1") ;
	}
}*/


function assignInvToMain(){
	if(invr_yui_table_instance != null && invs_yui_table_instance != null ){
	invr_yui_table_instance.showColumn("selectThis"); 
	invs_yui_table_instance.showColumn("selectThis");
	YAHOO.util.Dom.insertAfter ( "invrecieved_div" , "inv_rec_yui_placeholder2") ;
	YAHOO.util.Dom.insertAfter ( "invsent_div" ,"inv_sent_yui_placeholder2") ;
	}
}






